package com.sunchangming.myweb;

import com.thoughtworks.xstream.XStream;

public class OAuth2ClientCredentials {

	/** Value of the "API Key". */
	public String CLIENT_ID;

	/** Value of the "API Secret". */
	public String CLIENT_SECRET;

	private volatile static OAuth2ClientCredentials instance = null;

	public static OAuth2ClientCredentials getInstance() {
		if (instance == null) {
			synchronized (OAuth2ClientCredentials.class) {
				if (instance == null)
					instance = (OAuth2ClientCredentials) (new XStream())
							.fromXML(new java.io.File("oauth.xml"));
			}
		}
		return instance;
	}

}